<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button>按钮1</button>
    <button>按钮2</button>
    <script>
      const but1 = document.querySelector("button");
      console.log(but1);
      const but2 = document.querySelectorAll("button");
      console.log(but2)
      console.log(window);
      console.log(document);
    </script>
  </body>
</html>
